import https from '@/plugins/luch-request_0.0.7/request'

import order from './order'

export const getStatsReport = data => https.get('/apihkds/api/stats/report', data)

// 获取预约排行
export const getRankList = data => https.get('/apihkds/api/rank/fissionPrebookRankList', data)

// 获取转发排行
export const getShareList = data => https.get('/apihkds/api/rank/directShareRankList', data)

// 获取浏览量排行
export const getBrowseList = data => https.get('/apihkds/api/rank/rankList', data)

// 获取员工列表
export const getManageUserList = data => https.get('/apihkds/api/user/relation/getList', data)

// 添加员工
export const manageUserCreate = data => https.post('/apihkds/api/user/relation/create', data)

// 获取订单数据
export const getOrderIndex = data => https.get('/apihkds/api/shop/order/index', data)

// 获取常见问题列表
export const getProblemList = data => https.get('/apihkds/api/help/list', data)

// 获取常见问题详情
export const getProblemDetail = data => https.get('/apihkds/api/help/detail', data)

// 获取装修攻略分类
export const getDecorationSort = data => https.get('/apihkds/api/zxgl/classlist', data)

// 发布原创文章（攻略）
export const postStrategy = data => https.post('/apihkds/api/zxgl/add_article', data)
// 我的联盟列表
export const getMyLeagueList = data => https.get('/apihkds/api/myteam/show/list', data)
// 团队列表
export const getTeamList = data => https.get('/apihkds/api/myteam/show', data)
// 删除联盟
export const deleteMyLeagueList = data => https.post('/apihkds/api/myteam/destroy', data)
export const getqQrCode = data => https.post('/apihkds/api/myteam/create', data)

export default {
	manageUserCreate,
	getManageUserList,
	getBrowseList,
	getShareList,
	getRankList,
	getStatsReport,
	getProblemList,
	getProblemDetail,
	getDecorationSort,
	postStrategy,
	getMyLeagueList,
	deleteMyLeagueList,
	...order,
	getqQrCode
}
